# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=communicator
pkgver=2.1.2
pkgrel=0
pkgdesc="Contacts and dialer application"
# armhf blocked by extra-cmake-modules
# s390x and riscv64 blocked by mauikit
arch="all !armhf !s390x !riscv64"
url="https://invent.kde.org/maui/communicator"
license="GPL-3.0-or-later"
depends="
	mauikit-filebrowsing
	mauikit-texteditor
	"
makedepends="
	extra-cmake-modules
	kcontacts-dev
	kcoreaddons-dev
	ki18n-dev
	kpeople-dev
	kservice-dev
	mauikit-dev
	mauikit-filebrowsing-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	samurai
	"
source="https://download.kde.org/stable/maui/communicator/$pkgver/communicator-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
ea25447ca8f2a380e758345a0ce750163558e896837a4ff12ded6469a5a735bebcbceb3823da4a593d3f276e4ad277f58dbbc9bee9bf9040eb9a8bc86ee641c2  communicator-2.1.2.tar.xz
"
